﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IntroducingClasses
{
    class Program
    {
        static void Main(string[] args)
        {
            Person worker1 = new Person();
            worker1.name = "Worker One";
            worker1.salary = 1222;

            Person worker2 = new Person();
            worker2.name = "Worker Two";
            worker2.salary = 2333;

            Person worker3 = new Person();
            worker3.name = "Worker Three";
            worker3.salary = 3444;

            Person worker4 = new Person();
            worker4.name = "Fresno Sacramento";
            worker4.salary = 4555;

            Person worker5 = new Person();
            worker5.name = "Lviv Kharkiv";
            worker5.salary = 5666;

            Person[] salaryList = new Person { name, salary };


            //Person[,] salaryList = new Person[2, 5];
            //salaryList[0,0] = [worker1.name, worker1.salary];
            //salaryList[0, 1] = [worker2.name, worker2.salary];
            //salaryList[0, 2] = [worker3.name, worker3.salary];
            //salaryList[0, 3] = [worker4.name, worker4.salary];
            //salaryList[0, 4] =[worker5.name, worker5.salary];

            //PrintArrayToConsole(salaryList);

        }

        static void PrintArrayToConsole(Person[,] arrayForPrint)
        {
            for (int i = 0; i < arrayForPrint.GetLength(0); i++)
            {
                for (int j = 0; j < arrayForPrint.GetLength(1); j++)
                {
                    Console.Write("{0}\t", arrayForPrint[i, j]);
                }
                Console.WriteLine();
            }
        }
    }
}
